﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="ImageZoom.aspx.vb" Inherits="Universities.ImageZoom" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 124px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <br />
    <fieldset>
    <legend> Desctiption</legend>
    <asp:Repeater ID="Repeater2" runat="server" DataSourceID="SqlDataSource1">
    <ItemTemplate>
    <%# Eval("Description")%>
    </ItemTemplate>
    </asp:Repeater>
    </fieldset>
    <br />
    <table style="width: 73%;">
        <tr>
            <td class="style1">
                <asp:Image ID="img_dislike" runat="server" Height="39px" 
                    ImageUrl="~/Pictures/unlike.png" Width="49px" />
                <asp:Image ID="img_Like" runat="server" Height="39px" 
                    ImageUrl="~/Pictures/like.jpg" Width="49px" />
            </td>
            <td>
                <asp:Label ID="Lbl_Like_Message" runat="server"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style1">
                <asp:RadioButtonList ID="rbl_like_Unlike" runat="server" 
                    RepeatDirection="Horizontal">
                    <asp:ListItem Value="1">Like</asp:ListItem>
                    <asp:ListItem Value="0">Unlike</asp:ListItem>
                </asp:RadioButtonList>
            </td>
            <td>
                <asp:Button ID="btn_Like_unlike" runat="server" Text=" Click Me" />
                <asp:Label ID="lbl_error" runat="server" Font-Bold="True" Font-Italic="True" 
                    ForeColor="Red"></asp:Label>
            </td>
        </tr>
    </table>
    <asp:Repeater ID="Repeater1" runat="server" DataSourceID="SqlDataSource1">
    <ItemTemplate>
        <table style="width: 100%">
            <tr>
                <td style="width:75%">
                    <asp:Image ID="Image1" runat="server" ImageUrl = '<%# Eval("Photos")%>' 
                    Width = "600px" Height = "400px"/>
                </td>
                <td style="width:25%">
                 
                </td>
            </tr>
        </table>
    </ItemTemplate>    
    </asp:Repeater>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:UniConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:UniConnectionString.ProviderName %>" 
        SelectCommand="SELECT [ID], [UniversityID], [Photos], [Description] FROM [Gallery] WHERE (([ID] = ?) AND ([UniversityID] = ?))">
        <SelectParameters>
            <asp:QueryStringParameter Name="ID" QueryStringField="GID" Type="Int32" />
            <asp:QueryStringParameter Name="UniversityID" QueryStringField="UID" 
                Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
    <br />
    <asp:Chart ID="Chart1" runat="server">
        <Series>
            <asp:Series Name="Likes">
            </asp:Series>
            <asp:Series ChartArea="ChartArea1" Name="Unlike">
            </asp:Series>
        </Series>
        <ChartAreas>
            <asp:ChartArea Name="ChartArea1">
            </asp:ChartArea>
        </ChartAreas>
        <Titles>
            <asp:Title Name="Title1" Text="Photo Statistics">
            </asp:Title>
        </Titles>
    </asp:Chart>
    <br />
</asp:Content>
